﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using camcad7Home.CultureHelper;
namespace camcad7Home.Controllers
{
    public class AdminController : CultureController
    {
        //
        // GET: /Admin/
       Cadcam7Moddel.Context.DataContext db = new Cadcam7Moddel.Context.DataContext();
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Menubar()
        {
            var langstr=       Request.Cookies["_culture"]["lang"].ToString();
            var langs = from l in db.NgonNgus select l;
            ViewBag.curlang = db.NgonNgus.Where(m => m.Ma ==langstr ).FirstOrDefault();
            return PartialView(langs);
        }
    }
}
